/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.vegetablefield.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_vegetablefieldEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}vegetablefield", alias="a", columns={
		@Column(name="id", attrName="id", label="菜地编号", isPK=true),
		@Column(name="name", attrName="name", label="菜地名", queryType=QueryType.LIKE),
		@Column(name="province", attrName="province", label="省"),
		@Column(name="city", attrName="city", label="市"),
		@Column(name="county", attrName="county", label="县"),
		@Column(name="area", attrName="area", label="总面积"),
		@Column(name="planninguse", attrName="planninguse", label="规划用途"),
		@Column(name="ownership", attrName="ownership", label="所有权"),
		@Column(name="payway", attrName="payway", label="付款方式"),
		@Column(name="telephone", attrName="telephone", label="电话"),
	}, orderBy="a.id DESC"
)
public class Vegetablefield extends DataEntity<Vegetablefield> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 菜地名
	private String province;		// 省
	private String city;		// 市
	private String county;		// 县
	private Double area;		// 总面积
	private String planninguse;		// 规划用途
	private String ownership;		// 所有权
	private String payway;		// 付款方式
	private String telephone;		// 电话
	
	public Vegetablefield() {
		this(null);
	}

	public Vegetablefield(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="菜地名长度不能超过 255 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="省长度不能超过 255 个字符")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=255, message="市长度不能超过 255 个字符")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=255, message="县长度不能超过 255 个字符")
	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}
	
	public Double getArea() {
		return area;
	}

	public void setArea(Double area) {
		this.area = area;
	}
	
	@Length(min=0, max=10, message="规划用途长度不能超过 10 个字符")
	public String getPlanninguse() {
		return planninguse;
	}

	public void setPlanninguse(String planninguse) {
		this.planninguse = planninguse;
	}
	
	@Length(min=0, max=10, message="所有权长度不能超过 10 个字符")
	public String getOwnership() {
		return ownership;
	}

	public void setOwnership(String ownership) {
		this.ownership = ownership;
	}
	
	@Length(min=0, max=12, message="付款方式长度不能超过 12 个字符")
	public String getPayway() {
		return payway;
	}

	public void setPayway(String payway) {
		this.payway = payway;
	}
	
	@Length(min=0, max=12, message="电话长度不能超过 12 个字符")
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
}